<%@ page import="sige.Bimestre" %>
<%@ page import="sige.Semestre" %>

<!-------------------------------SEMESTRE---------------------------------->

<div class="control-group" >
  <label  class="control-label" for="semestre.dados1">
    <g:message code="semestre.dados1.label" default="Datas" />
  </label> 
  <div class="controls">
    <g:textField name="dataInicioSemestre" class="span2" readOnly="readOnly" 
                 value="${formatDate(format:'dd-MM-yyyy',date: semestreInstance?.dataDeInicio)}"/> 
    - 
    <g:textField name="dataFechamentoSemestre" class="span2" readOnly="readOnly" 
                 value="${formatDate(format:'dd-MM-yyyy',date: semestreInstance?.dataDeFechamento)}"/>
  </div> 
</div>


<!-------------------------------BIMESTRE_1---------------------------------->
<div class="control-group" >
  <label  class="control-label" for="bimestre1">
  </label>
  <div class="controls" > 
    <h5>
      <g:message code="bimestre.dados1.label" default="Datas do Primeiro Bimestre" />
    </h5>
  </div>
</div>

<div class="control-group" >
  <label  class="control-label" for="bimestre_1.dataDeInicio">
    <g:message code="bimestre.dataDeInicio.label" default="Data de Início" />
    <span class="required-indicator">*</span>
  </label> 
  <div class="controls">
    <g:myDatePicker  precision="day" name="bimestre_1.dataDeInicio" value="${semestreInstance?.bimestre_1?.dataDeInicio}"  />
  </div> 
</div>

<div class="control-group" >
  <label  class="control-label" for="bimestre_1.dataDeFechamento">
    <g:message code="bimestre.dataDeFechamento.label" default="Data De Fechamento" />
    <span class="required-indicator">*</span>
  </label> 
  <div class="controls"> 
    <g:myDatePicker  precision="day" name="bimestre_1.dataDeFechamento" value="${semestreInstance?.bimestre_1?.dataDeFechamento}"  />
  </div> 
</div>

<!-------------------------------BIMESTRE_2---------------------------------->
<div class="control-group" >
  <label  class="control-label" for="bimestre2">
  </label>
  <div class="controls" > 
    <h5>
      <g:message code="bimestre.dados2.label" default="Datas do Segundo Bimestre" />
    </h5>
  </div>
</div>

<div class="control-group" >
  <label  class="control-label" for="bimestre_2.dataDeInicio">
    <g:message code="bimestre.dataDeInicio.label" default="Data de Início" />
    <span class="required-indicator">*</span>
  </label> 
  <div class="controls"> 
    <g:myDatePicker  precision="day" name="bimestre_2.dataDeInicio" value="${semestreInstance?.bimestre_2?.dataDeInicio}"  />
  </div> 
</div>

<div class="control-group" >
  <label  class="control-label" for="bimestre_2.dataDeFechamento">
    <g:message code="bimestre.dataDeFechamento.label" default="Data De Fechamento" />
    <span class="required-indicator">*</span>
  </label> 
  <div class="controls"> 
    <g:myDatePicker  precision="day" name="bimestre_2.dataDeFechamento" value="${semestreInstance?.bimestre_2?.dataDeFechamento}"  />
  </div> 
</div>

<g:hiddenField name="bimestre_1.nome"  value="1° Bimestre"  />
<g:hiddenField name="bimestre_2.nome"  value="2° Bimestre"  />